/** 
 * 项目公共API 
 * Author:      cn2008tv 
 * CreateTime:  2023/2/5 18:45:25 
 * LastEditor:  cn2008tv 
 * ModifyTime:  2023/12/5 20:22:49 
 * Description: 
*/ 
import {defHttp} from "/@/utils/http/axios";

/**
 * 列表接口
 * @param params
 */
export const list = (Api,params) =>
  defHttp.post({url: Api.list, params});/**
 * 列表接口
 * @param params
 */
export const getlist = (Api,params) =>
  defHttp.get({url: Api.list, params});
export const getCodeList = (url,params) =>
  defHttp.get({url: url, params});
/**
 * 插入接口
 * @param params
 */
export const insert = (Api,params) =>
  defHttp.post({url: Api.insert, params});
/**
 * 插入接口
 * @param params
 */
export const postAction = (url,params) =>
  defHttp.post({url:url, params});
/**
 * 删除接口
 * @param params
 */
export const remove = (Api,id) =>
  defHttp.delete({url: Api.remove+'?&id='+id});
/**
 * 更新接口
 * @param params
 */
export const update = (Api,params) =>
  defHttp.put({url: Api.update,params});
/**
 * 通用更新接口
 * @param params
 */
export const p_update = (url,params) =>
  defHttp.put({url,params});
/**
 * 删除接口
 * @param params
 */
export const p_delete = (Api,id) =>
  defHttp.delete({url: Api+'?&id='+id});
